home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archivers / SignArch / InstallSignArch < prev    next >
Text File  |  1996-09-26  |  17KB  |  1,092 lines

  1. ; Installer script for SignArch utility
  2. ; Use a tabsize equal to 4 when reading
  3. ; © 1994 Jens T. Berger Thielemann
  4. ; Distributed under the GNU General Public License.
  5. ; To contact the author:
  6. ; <jensthi@ifi.uio.no>
  7. ; or
  8. ;   Jens Berger
  9. ;   Spektrumveien 4
  10. ;   N-0666 Oslo
  11. ;   Norway
  12. ; or
  13. ; Send   a   message   in   POST   to   J.    BERGER   on  Trashcan  (A)BBS
  14. ; [(+47) 22 25 74 78 or (+47) 22 25 88 22].
  15. ; NO WARRANTIES AT ALL FOR FUNCTIONALITY OR FITNESS FOR A SPECIFIC PURPOSE
  16.  
  17. ; $VER: InstallSignArch 1.1 (11.11.94) Copyright © 1994 Jens T. Berger Thielemann
  18.  
  19.  
  20. ; **********************  VARIOUS INITIALIZATION  *************************
  21.  
  22. (procedure
  23.     getcommand
  24.     (
  25.         (if
  26.             (=
  27.                 @user-level
  28.                 2
  29.             )
  30.             (set
  31.                 gcretval
  32.                 (askfile
  33.                     (prompt gcprompt)
  34.                     (help gchelp)
  35.                     (default gcdef)
  36.                 )
  37.             )
  38.             (
  39.                 (if
  40.                     (exists "Sys:Rexxc/RX")
  41.                     (set 
  42.                         gcretval
  43.                         gcdef
  44.                     )
  45.                     (
  46.                         (set
  47.                             @user-level
  48.                             2
  49.                         )
  50.                         (getcommand)
  51.                     )
  52.                 )
  53.             )
  54.         )
  55.         (set
  56.             @user-level
  57.             defuser
  58.         )
  59.     )
  60. )
  61.  
  62. (procedure
  63.     getrexxpath
  64.     (
  65.         (set
  66.             @user-level
  67.             2
  68.         )
  69.         (set
  70.             rexxpath
  71.             (askdir
  72.                 (prompt "Select directory for main REXX program. NO SPACES!")
  73.                 (help
  74.                     "The directory you select should be the same as you "
  75.                     "put all your other REXX programs within.\n"
  76.                     "REXX: is preferred, as AmigaDOS easier will find the "
  77.                     "program. Spaces should be avoided in the path, as "
  78.                     "the RX program doesn't understand them.\n\n"
  79.                     @askdir-help
  80.                 )
  81.                 (default "REXX:")
  82.             )
  83.         )
  84.         (set
  85.             @user-level
  86.             defuser
  87.         )
  88.         (if
  89.             (<>
  90.                 rexxpath
  91.                 "REXX:"
  92.             )
  93.             (set
  94.                 rexxpath
  95.                 (expandpath rexxpath)
  96.             )
  97.         )
  98.     )
  99. )
  100.  
  101. (set @app-name "SignArch")
  102. (welcome)
  103.  
  104. (set
  105.     defuser
  106.     @user-level
  107. )
  108.  
  109. (set
  110.     @user-level
  111.     2
  112. )
  113.  
  114.  
  115.  
  116. ; ****************  VERIFY THAT USER HAS CHECKED FILES  *******************
  117.  
  118. (askbool
  119.     (prompt
  120.         "Please verify that you already have checked files with MD5SUM and "
  121.         "PGP before running this script, either manually or with the "
  122.         "included script."
  123.     )
  124.     (help
  125.         "To check the files, type the following commands in a Shell:\n\n"
  126.         "    PGP -kaa SignArch.sum\n"
  127.         "    PGP -f <SignArch.sum >T:PGPTest.asc\n"
  128.         "    MD5SUM -cv T:PGPTest.asc\n"
  129.         "An easier, although more insecure method is just to doubleclick "
  130.         "the Signarch.sum icon."
  131.     )
  132.     (default 1)
  133.     (choices
  134.         "Verified"
  135.         "Verified"
  136.     )
  137. )
  138.  
  139.  
  140.  
  141.  
  142. ; ********************  CHECK THAT PGP IS INSTALLED  **********************
  143.  
  144. (set
  145.     pgppathexists
  146.     (exists
  147.         "ENV:PGPPATH"
  148.         (noreq)
  149.     )
  150. )
  151.  
  152.  
  153. (if
  154.     (=
  155.         pgppathexists
  156.         1
  157.     )
  158.     (set
  159.         pgpdir
  160.         (getenv "PGPPATH")
  161.     )
  162.     (set
  163.         pgpdir
  164.         ""
  165.     )
  166. )
  167.  
  168.  
  169. (if
  170.     (OR
  171.         (<>
  172.             pgppathexists
  173.             1
  174.         )
  175.         (=
  176.             pgpdir
  177.             ""
  178.         )
  179.     )
  180.     (if
  181.         (askbool
  182.             (prompt
  183.                 "PGPPATH is not initialized! Would you like to add a line"
  184.                 "to your user-startup, telling PGP where it shall store "
  185.                 "its files?"
  186.             )
  187.             (help
  188.                 "PGPPATH should be initialized to the directory that "
  189.                 "you wish that PGP should keep its keyrings, random "
  190.                 "seeds, and other needed files. It does NOT have to "
  191.                 "be the same dir as PGP is located within, "
  192.                 "in fact, it may be a good idea to NOT keep these files "
  193.                 "in the path.\n"
  194.                 "Without this path set, PGP will not function correctly.\n\n"
  195.                 "By selecting 'Yes', you will be prompted with a directory "
  196.                 "requestor, and your 'User-Startup' will be updated.\n\n"
  197.                 "NOTE: PGP must function correctly to make this program "
  198.                 "work!"
  199.             )
  200.             (default 1)
  201.             (choices
  202.                 "Yes"
  203.                 "No"
  204.             )
  205.         )
  206.         (
  207.             (set
  208.                 pgpdir
  209.                 (expandpath
  210.                     (askdir
  211.                         (prompt "Please select directory for PGP files")
  212.                         (help
  213.                             "Within this directory, the files PGP needs, "
  214.                             "will/should be put, among other keyrings, "
  215.                             "random seeds, etc. For further information "
  216.                             "about how to install PGP, please consult the "
  217.                             "documentation for PGP.\n\n"
  218.                             @askdir-help
  219.                         )
  220.                         (default "Sys:PGP/")
  221.                     )
  222.                 )
  223.             )
  224.             (set
  225.                 @user-level
  226.                 defuser
  227.             )
  228.             (startup
  229.                 "PGP"
  230.                 (prompt
  231.                     "Do you wish to add PGPPATH information to your "
  232.                     "'S:User-Startup' file?"
  233.                 )
  234.                 (help
  235.                     "As explained earlier, PGP needs a path set to the dir "
  236.                     "that it should put/find its files. This information "
  237.                     "will be added to your 'S:User-Startup' file, which "
  238.                     "is executed on every startup.\n\n"
  239.                     @startup-help
  240.                 )
  241.                 (command
  242.                     (cat
  243.                         "Setenv PGPPATH \""
  244.                         pgpdir
  245.                         "\""
  246.                     )
  247.                 )
  248.             )
  249.             (if
  250.                 (=
  251.                     defuser
  252.                     2
  253.                 )
  254.                 (run
  255.                     (cat
  256.                         "Setenv PGPPATH \""
  257.                         pgpdir
  258.                         "\""
  259.                     )
  260.                     (prompt
  261.                         "Do you wish that this variable should be set at "
  262.                         "once?"
  263.                     )
  264.                     (help
  265.                         "Normally, the path variable won't be initialized "
  266.                         "until you reboot. Select 'yes', and it will be set "
  267.                         "at once."
  268.                     )
  269.                     (confirm)
  270.                 )
  271.                 (run
  272.                     (cat
  273.                         "Setenv PGPPATH \""
  274.                         pgpdir
  275.                         "\""
  276.                     )
  277.                     (prompt "Setting PGPPATH variable...")
  278.                     (help
  279.                         "Normally, the path variable won't be initialized "
  280.                         "until you reboot. It will now be initialized at "
  281.                         "once."
  282.                     )
  283.                 )
  284.             )
  285.         )
  286.     )
  287. )
  288.  
  289. (set
  290.     @user-level
  291.     2
  292. )
  293.  
  294.  
  295.  
  296.  
  297.  
  298. ; *****************  CHECK THAT REQTOOLS IS INSTALLED  ********************
  299.  
  300. (if
  301.     (<>
  302.         (exists "LIBS:reqtools.library")
  303.         1
  304.     )
  305.     (askbool
  306.         (prompt
  307.             "reqtools.library is missing. Please be aware of that the "
  308.             "GUI won't work until you've installed it in LIBS:."
  309.         )
  310.         (help
  311.             "reqtools.library (Copyright © 1991-94 Nico François) can "
  312.             "be found on most BBS's.  Until it is installed, the GUI "
  313.             "won't start at all.\n"
  314.             "To install reqtools.library, please read/use the files "
  315.             "included with reqtools.library."
  316.         )
  317.         (default 1)
  318.         (choices
  319.             "Understood"
  320.             "Understood"
  321.         )
  322.     )
  323. )
  324.  
  325. (set
  326.     @user-level
  327.     defuser
  328. )
  329.  
  330.  
  331.  
  332.  
  333.  
  334. ; *********************  GET PATH FOR REXX PROGRAM  ***********************
  335.  
  336. (set
  337.     rexxpath
  338.     ""
  339. )
  340.  
  341. (if
  342.     (exists
  343.         "REXX:"
  344.         (noreq)
  345.     )
  346.     (if
  347.         (=
  348.             @user-level
  349.             2
  350.         )
  351.         (if
  352.             (askbool
  353.                 (prompt
  354.                     "Do you wish to install the REXX part of the program in "
  355.                     "your REXX: assign? This is where REXX programs normally "
  356.                     "are stored, and will help AmigaDOS find the program."
  357.                 )
  358.                 (help
  359.                     "By selecting yes, the main program will be copied to "
  360.                     "your REXX: assign.  If you select no, you will be "
  361.                     "presented with a directory requester."
  362.                 )
  363.                 (default 1)
  364.             )
  365.             (
  366.                 (set
  367.                     rexxpath
  368.                     "REXX:"
  369.                 )
  370.             )
  371.             (getrexxpath)
  372.         )
  373.         (
  374.             (set
  375.                 rexxpath
  376.                 "REXX:"
  377.             )
  378.         )
  379.     )
  380.     (
  381.         (getrexxpath)
  382.     )
  383. )
  384.  
  385. (set
  386.     @user-level
  387.     defuser
  388. )
  389.  
  390.  
  391.  
  392.  
  393.  
  394. ; ****************  COPY REXX PROGRAM & SET SCRIPT FLAG  ******************
  395.  
  396. (copyfiles
  397.     (source "SignArch.rexx")
  398.     (dest rexxpath)
  399.     (prompt "Copying main REXX program")
  400.     (infos)
  401. )
  402.  
  403. (copyfiles
  404.     (source "AddSum.rexx")
  405.     (dest rexxpath)
  406.     (prompt "Copying additional REXX programs")
  407. )
  408.  
  409.  
  410. (if
  411.     (=
  412.         @user-level
  413.         2
  414.     )
  415.     (set
  416.         doprotect
  417.         (askbool
  418.             (prompt "Set script flag on the REXX programs?")
  419.             (help
  420.                 "By setting the script flag, there is no need to put a 'RX' in "
  421.                 "front of the REXX program to run the program - AmigaDOS will "
  422.                 "automagically run it correctly as a REXX program, adding a "
  423.                 "lot of comfort."
  424.             )
  425.             (choices
  426.                 "Yes"
  427.                 "No"
  428.             )
  429.             (default 1)
  430.         )
  431.     )
  432.     (set
  433.         doprotect
  434.         1
  435.     )
  436. )
  437.  
  438. (set
  439.     @user-level
  440.     1
  441. )
  442.  
  443. (if
  444.     (=
  445.         doprotect
  446.         1
  447.     )
  448.     (
  449.         (run
  450.             (cat
  451.                 'Protect "'
  452.                 (tackon
  453.                     rexxpath
  454.                     "SignArch.rexx"
  455.                 )
  456.                 '" +s'
  457.             )
  458.             (prompt "Setting script flags on REXX programs...")
  459.         )
  460.         (run
  461.             (cat
  462.                 'Protect "'
  463.                 (tackon
  464.                     rexxpath
  465.                     "AddSum.rexx"
  466.                 )
  467.                 '" +s'
  468.             )
  469.             (prompt "Setting script flags on REXX programs...")
  470.         )
  471.     )
  472. )
  473.  
  474. (set
  475.     @user-level
  476.     defuser
  477. )
  478.  
  479. ; ***************  GET PATH FOR GRAPHICAL USER INTERFACE  *****************
  480.  
  481. (set
  482.     @user-level
  483.     2
  484. )
  485.  
  486. (set
  487.     guipath
  488.     (askdir
  489.         (prompt "Please select directory for GUI programs.")
  490.         (help
  491.             "Within this directory, the Graphical User Interface (GUI) "
  492.             "will be installed.  Preferably, this directory should be "
  493.             "accessible from the Workbench, by icons, and also be in your "
  494.             "path.\n"
  495.             "Also, some stubs will be installed here, so you may start the "
  496.             "REXX scripts by icons.\n\n"
  497.             @askdir-help
  498.         )
  499.         (default "Sys:Utilities")
  500.     )
  501. )
  502.  
  503. (set
  504.     @user-level
  505.     defuser
  506. )
  507.  
  508.  
  509.  
  510.  
  511.  
  512. ; *****************************  COPY GUI  ********************************
  513.  
  514.  
  515. (copyfiles
  516.     (source "SignArchGUI")
  517.     (dest guipath)
  518.     (prompt "Copying Graphical User Interface...")
  519.     (infos)
  520. )
  521.  
  522. ; ************************  INSTALL AMIGAGUIDE  ***************************
  523.  
  524. (set
  525.     copyguide
  526.     (askbool
  527.         (prompt "Copy AmigaGuide documentation?")
  528.         (help
  529.             "The documentation needs to be copied to make sure that the "
  530.             "online help is available. If you select yes, you will "
  531.             "presented with a directory requester."
  532.         )
  533.         (choices
  534.             "Yes"
  535.             "No"
  536.         )
  537.         (default 1)
  538.     )
  539. )
  540.  
  541.  
  542. (if
  543.     (=
  544.         copyguide
  545.         1
  546.     )
  547.     (
  548.         (if
  549.             (exists
  550.                 "HELP:"
  551.                 (noreq)
  552.             )    
  553.             (set
  554.                 defguidepath
  555.                 "HELP:"
  556.             )
  557.             (set
  558.                 defguidepath
  559.                 guipath
  560.             )
  561.         )
  562.  
  563.         (set
  564.             guidepath
  565.             (askdir
  566.                 (prompt "Select directory for documentation")
  567.                 (help
  568.                     "The AmigaGuide documentation will be put in the directory "
  569.                     "you select.  By copying it here, it will be available as "
  570.                     "online help in the GUI, by pressing <HELP> over a gadget "
  571.                     "or menu.\n\n"
  572.                     @askdir-help
  573.                 )
  574.  
  575.                 (default defguidepath)
  576.             )
  577.         )
  578.         (copyfiles
  579.             (source "SignArch.guide")
  580.             (dest guidepath)
  581.             (infos)
  582.             (prompt "Copying AmigaGuide documentation...")
  583.             (help
  584.                 "The documentation needs to be copied to make sure that the "
  585.                 "online help is available. It will be copied to '" guidepath
  586.                 "'.\n\n"
  587.                 @copyfiles-help
  588.             )
  589.         )
  590.     )
  591.     (set
  592.         guidepath
  593.         ":::N/A:::"
  594.     )
  595. )
  596.  
  597.  
  598.  
  599.  
  600. ; ******************  GET DIR FOR ACCESSORY PROGRAMS  *********************
  601.  
  602.  
  603. (if
  604.     (=
  605.         @user-level
  606.         2
  607.     )
  608.     (set
  609.         defpath
  610.         (askdir
  611.             (prompt
  612.                 "Select a directory, preferably in your path, to install "
  613.                 "needed accessory programs.  Make sure that the name does "
  614.                 "NOT contain spaces."
  615.             )
  616.             (help
  617.                 "SignArch needs a few extra programs installed in the path "
  618.                 "to function correctly. The 'c' directory on your boot "
  619.                 "disk is usually a suitable place. Spaces must be avoided, "
  620.                 "as the RX command doesn't understand them.\nIn addition, "
  621.                 "a LhA replacement will be installed (named ShA).\n\n"
  622.                  @askdir-help
  623.             )
  624.              (default "C:")
  625.         )
  626.     )
  627.     (set
  628.         defpath
  629.         "c:"
  630.     )
  631. )
  632.  
  633.  
  634. ; **************  GUI PATH = DEFAULTPATH, COPY ACC. PRGS  *****************
  635.  
  636. (set
  637.     @default-dest
  638.     defpath
  639. )
  640.  
  641. (copyfiles
  642.     (source "ChkASCII")
  643.     (dest defpath)
  644.     (prompt "Copying accessory programs")
  645. )
  646.  
  647. (copyfiles
  648.     (source "ChkDate")
  649.     (dest defpath)
  650.     (prompt "Copying accessory programs")
  651. )
  652.  
  653. (copyfiles
  654.     (source "ShA")
  655.     (dest defpath)
  656.     (prompt "Copying LhA replacement")
  657. )
  658.  
  659.  
  660. ; **************************  CREATE ENV-FILE  ****************************
  661.  
  662. (set
  663.     @user-level
  664.     defuser
  665. )
  666.  
  667. (if
  668.     (=
  669.         @user-level
  670.         2
  671.     )
  672.     (set
  673.         createenv
  674.         (askbool
  675.             (prompt "Do you wish that enviroment files shall be created?")
  676.             (help
  677.                 "These files will tell the GUI where certain commands it "
  678.                 "needs are located, namely PGP and RX. Two files will be "
  679.                 "created, one in ENV: and one in ENVARC:."
  680.             )
  681.             (default 1)
  682.             (choices
  683.                 "Yes"
  684.                 "No"
  685.             )
  686.         )
  687.     )
  688. )
  689.  
  690. (if
  691.     (=
  692.         createenv
  693.         1
  694.     )
  695.     (
  696.         (set
  697.             gchelp
  698.             (cat
  699.                 "The programs need the location of the RX command, used for "
  700.                 "starting REXX scripts. Please select it, so they are "
  701.                 "aware of where it is.\n\n"
  702.                 @askfile-help
  703.             )
  704.         )
  705.  
  706.         (set
  707.             gcprompt
  708.             "Select RX command"
  709.         )
  710.  
  711.         (set
  712.             gcdef
  713.             "Sys:Rexxc/RX"
  714.         )
  715.  
  716.         (getcommand)
  717.  
  718.         (set
  719.             rxcomm
  720.             gcretval
  721.         )
  722.  
  723.         (set
  724.             gchelp
  725.             (cat
  726.                 "The programs needs the location of the PGP program, used for "
  727.                 "encryption, etc. Please select it, so they are aware of "
  728.                 "where it is.\n\n"
  729.                 @askfile-help
  730.             )
  731.         )
  732.  
  733.         (set
  734.             gcprompt
  735.             "Select PGP command"
  736.         )
  737.  
  738.         (set
  739.             gcdef
  740.             "Sys:c/PGP"
  741.         )
  742.  
  743.         (getcommand)
  744.  
  745.         (set
  746.             pgpcomm
  747.             gcretval
  748.         )
  749.  
  750.         (set
  751.             gchelp
  752.             (cat
  753.                 "The programs needs the location of the LhA program, used for "
  754.                 "archiving. Please select it, so they are aware of "
  755.                 "where it is.\n\n"
  756.                 @askfile-help
  757.             )
  758.         )
  759.  
  760.         (set
  761.             gcprompt
  762.             "Select LhA command"
  763.         )
  764.  
  765.         (set
  766.             gcdef
  767.             "Sys:c/LhA"
  768.         )
  769.  
  770.         (getcommand)
  771.  
  772.         (set
  773.             lhacomm
  774.             gcretval
  775.         )
  776.  
  777.         (set
  778.             gchelp
  779.             (cat
  780.                 "The programs needs the location of the MD5Sum program, used for "
  781.                 "creating message digests. Please select it, so they are aware of "
  782.                 "where it is.\n\n"
  783.                 @askfile-help
  784.             )
  785.         )
  786.  
  787.         (set
  788.             gcprompt
  789.             "Select MD5Sum command"
  790.         )
  791.  
  792.         (set
  793.             gcdef
  794.             "Sys:c/MD5Sum"
  795.         )
  796.  
  797.         (getcommand)
  798.  
  799.         (set
  800.             md5comm
  801.             gcretval
  802.         )
  803.     )
  804. )
  805.  
  806. (set
  807.     @user-level
  808.     defuser
  809. )
  810.  
  811. (if
  812.     (=
  813.         createenv
  814.         1
  815.     )
  816.     (
  817.         (if
  818.             (<>
  819.                 ":::N/A:::"
  820.                 guidepath
  821.             )
  822.             (set
  823.                 guidepath
  824.                 (tackon
  825.                     guidepath
  826.                     "SignArch.guide"
  827.                 )
  828.             )
  829.         )
  830.  
  831.         (textfile
  832.             (prompt "Creating environment file for temporary use (ENV:)...")
  833.             (help
  834.                 "This file helps the GUI find the commands it needs, that "
  835.                 "is, PGP, RX and the REXX program."
  836.             )
  837.             (dest "ENV:SignArchGUIPaths")
  838.             (confirm)
  839.             (append
  840.                 "PGP:"
  841.                 pgpcomm
  842.                 "\n"
  843.  
  844.                 "RXC:"
  845.                 rxcomm
  846.                 "\n"
  847.  
  848.                 "SCR:"
  849.                 (tackon
  850.                     rexxpath
  851.                     "SignArch.rexx"
  852.                 )
  853.                 "\n"
  854.  
  855.                 "DOC:"
  856.                 guidepath
  857.                 "\n"
  858.  
  859.                 "LHA:"
  860.                 lhacomm
  861.                 "\n"
  862.                 
  863.                 "MD5:"
  864.                 md5comm
  865.                 "\n"
  866.  
  867.                 "SMI:TRUE\n"
  868.                 "ICN:TRUE\n"
  869.             )
  870.         )
  871.         (textfile
  872.             (prompt "Creating environment file for storage (ENVARC:)...")
  873.             (help
  874.                 "This file helps the GUI find the commands it needs, "
  875.                 "that is, PGP, RX and the REXX program."
  876.             )
  877.             (dest "ENVARC:SignArchGUIPaths")
  878.             (confirm)
  879.             (append
  880.                 "PGP:"
  881.                 pgpcomm
  882.                 "\n"
  883.  
  884.                 "RXC:"
  885.                 rxcomm
  886.                 "\n"
  887.  
  888.                 "SCR:"
  889.                 (tackon
  890.                     rexxpath
  891.                     "SignArch.rexx"
  892.                 )
  893.                 "\n"
  894.  
  895.                 "DOC:"
  896.                 guidepath
  897.                 "\n"
  898.  
  899.                 "LHA:"
  900.                 lhacomm
  901.                 "\n"
  902.                 
  903.                 "MD5:"
  904.                 md5comm
  905.                 "\n"
  906.  
  907.                 "SMI:TRUE\n"
  908.                 "ICN:TRUE\n"
  909.             )
  910.         )
  911.     )
  912. )
  913.  
  914. (copyfiles
  915.     (source "Icons/sum_scr.info")
  916.     (dest "ENVARC:")
  917.     (prompt "Copying default icons to ENVARC:")
  918.     (help @copyfiles-help)
  919.     (infos)
  920. )
  921.  
  922. (copyfiles
  923.     (source "Icons/sum_dta.info")
  924.     (dest "ENVARC:")
  925.     (prompt "Copying default icons to ENVARC:")
  926.     (help @copyfiles-help)
  927.     (infos)
  928. )
  929.  
  930. (copyfiles
  931.     (source "Icons/sum_scr.info")
  932.     (dest "ENV:")
  933.     (prompt "Copying default icons to ENV:")
  934.     (help @copyfiles-help)
  935.     (infos)
  936. )
  937.  
  938. (copyfiles
  939.     (source "Icons/sum_dta.info")
  940.     (dest "ENV:")
  941.     (prompt "Copying default icons to ENV:")
  942.     (help @copyfiles-help)
  943.     (infos)
  944. )
  945.  
  946.  
  947. ; *************************  CREATE DUMMY FILE  ***************************
  948.  
  949. (if
  950.     (=
  951.         @user-level
  952.         2
  953.     )
  954.     (set
  955.         dodummys
  956.         (askbool
  957.             (prompt
  958.                 "Do you wish to install AmigaDOS dummy scripts (with "
  959.                 "icons) in the selected path, which takes care of "
  960.                 "invoking the REXX program?"
  961.             )
  962.             (help
  963.                 "AmigaDOS won't find REXX programs automagically if they are "
  964.                 "not in the current directory or REXX:\n"
  965.                 "A workaround for this is to install a dummy AmigaDOS script "
  966.                 "(which AmigaDOS DOES find) in your path, which you then can "
  967.                 "access from everywhere.\n"
  968.                 "PS! Even if you've installed the script in REXX:, such a "
  969.                 "script may be useful if you're lazy - the name gets 5 chars "
  970.                 "shorter, and icons will be copied, so you may start the "
  971.                 "scripts from WB."
  972.             )
  973.             (choices
  974.                 "Yes"
  975.                 "No"
  976.             )
  977.             (default 1)
  978.         )
  979.     )
  980.     (set
  981.         dodummys
  982.         1
  983.     )
  984. )
  985.  
  986. (set
  987.     @user-level
  988.     1
  989. )
  990.  
  991. (if
  992.     (=
  993.         dodummys
  994.         1
  995.     )
  996.     (
  997.         (textfile
  998.             (dest
  999.                 (tackon
  1000.                     guipath
  1001.                     "SignArch"
  1002.                 )
  1003.             )
  1004.             (append
  1005.                 (cat
  1006.                     ".key FILELIST\n"
  1007.                     ".bra {\n"
  1008.                     ".ket }\n"
  1009.                     "; Dummy script for the SignArch REXX program\n\n"
  1010.                     "RX "
  1011.                     (tackon
  1012.                         rexxpath
  1013.                         "SignArch.rexx"
  1014.                     )
  1015.                     " {FILELIST}\n"
  1016.                 )
  1017.             )
  1018.         )
  1019.         (textfile
  1020.             (dest
  1021.                 (tackon
  1022.                     guipath
  1023.                     "AddSum"
  1024.                 )
  1025.             )
  1026.             (append
  1027.                 (cat
  1028.                     ".key ARCHIVE,TMPDIR\n"
  1029.                     ".bra {\n"
  1030.                     ".ket }\n"
  1031.                     "; Dummy script for the AddSum REXX program\n\n"
  1032.                     "FailAt 10\n"
  1033.                     "If EQ \"\" \"{ARCHIVE}\"\n"
  1034.                     "\tSet ArcName `RequestFile PATTERN #?.(lha|lzh) TITLE \"Select archive to add sum to\"`\n"
  1035.                     "Else\n"
  1036.                     "\tSet ArcName \"{ARCHIVE}\"\n"
  1037.                     "EndIf\n"
  1038.                     "RX "
  1039.                     (tackon
  1040.                         rexxpath
  1041.                         "SignArch.rexx"
  1042.                     )
  1043.                     "\n"
  1044.                     "UnSet ArcName\n"
  1045.                 )
  1046.             )
  1047.         )
  1048.         (copyfiles
  1049.             (source "SignArch.info")
  1050.             (dest guipath)
  1051.             (prompt "Copying icon for dummy script")
  1052.         )
  1053.         (copyfiles
  1054.             (source "AddSum.info")
  1055.             (dest guipath)
  1056.             (prompt "Copying icon for dummy script")
  1057.         )
  1058.  
  1059.     )
  1060. )
  1061.  
  1062. (set
  1063.     @user-level
  1064.     defuser
  1065. )
  1066.  
  1067.  
  1068.  
  1069. ; *******************************  EXIT  **********************************
  1070.  
  1071. (exit
  1072.     (cat
  1073.         "SignArch has now been installed. To run the program, type "
  1074.         "'SignArch' in a Shell, or, easier, start SignArchGUI, found "
  1075.         "within '"
  1076.         guipath
  1077.         "'.\n"
  1078.         "For LhA entuiasts, the command is '"
  1079.         (tackon
  1080.             defpath
  1081.             "ShA"
  1082.         )
  1083.         "' or '"
  1084.         (tackon
  1085.             defpath
  1086.             "AddSum"
  1087.         )
  1088.         "'.\n\nHave fun."
  1089.     )
  1090. )
  1091.  
  1092.